<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html> <!--<![endif]-->
<head>
        <!-- Basic Page Needs
  ================================================== -->
        <meta charset="utf-8">
        <title>R3 Big Data Analytics</title>
        <meta name="description" content="">
        <meta name="author" content="J.Chen">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
        <!-- 让360双核浏览器用webkit内核渲染页面
  ================================================== -->
	<meta name="renderer" content="webkit">
        <!-- Mobile Specific Metas
  ================================================== -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	
</head>
	<body>
		
		<div wrapper="true"><!-- Everything started here -->
			<div>
				<div>
					<div style="border:0px;height:50px;text-align:center;font-weight:bold;font-size:18px">
						   ${report.name!''}
					</div>

					<div>
							
						<div style="border-top:solid 2px #d8af84;">
							
						</div>
						<div style="margin:1px;" id="design_table" >
							<#if reportModel??&&reportModel.viewtype?? && reportModel.viewtype == "view">
								<#if reportModel??>
								<table style="border: 1px solid #7dc9ff!important;border-collapse:collapse;background:#7dc9ff;font:12px/22px Microsoft yahei;color:#666;background:#ffffff;" data-id="${reportModel.id!''}">
								<thead style="border:1px solid #7dc9ff!important;">
								<#if reportModel?? && reportModel.reportData?? && reportModel.reportData.col?? && reportModel.reportData.col.title??>
								<#list reportModel.reportData.col.title as tlist>
								<tr>
								<#if reportModel.reportData.col.title?size gt 1 && tlist_index == 0 && reportModel.reportData.row.title?size gt 0>
								<td style="border:1px solid #7dc9ff!important;font:12px/30px Microsoft yahei;color:#000;background:#bfe4ff;font-weight:bold;min-width: 50px !important;padding:0 5px 0 5px;" align="center" colspan="${reportModel.reportData.row.title?size}" rowspan="${reportModel.reportData.col.title?size-1}" ></td>	
								</#if>
								<#if (tlist_index+1) == reportModel.reportData.col.title?size && reportModel.reportData.row?? && reportModel.reportData.row.firstTitle??>
								<#list reportModel.reportData.row.firstTitle as first>
								<td style="border:1px solid #7dc9ff!important;font:12px/30px Microsoft yahei;color:#000;background:#bfe4ff;font-weight:bold;min-width: 50px !important;padding:0 5px 0 5px;" align="center" data-title="${first.name}" data-flag="dim">
								${first.rename!first.name!''}
								</td>
								</#list>
								</#if>
								<#if tlist??>
								<#list tlist as tl>
								<td style="border:1px solid #7dc9ff!important;font:12px/30px Microsoft yahei;color:#000;background:#bfe4ff;font-weight:bold;min-width: 50px !important;padding:0 5px 0 5px;" align="center"  <#if  tl.leveltype?? && tl.leveltype == "newcol">rowspan="${reportModel.reportData.col.title?size}"</#if> colspan="${tl.colspan}" >
								${tl.rename!tl.name!""}		
								</td>
								</#list>
								</#if>
								</tr>
								</#list>
								</#if>
								</thead>
								<tbody style="border:1px solid #7dc9ff!important;">
								<#if reportModel.reportData?? && reportModel.reportData.data??>
								<#list reportModel.reportData.data as values>
								<tr >	  
								<#if reportModel.reportData.row?? && reportModel.reportData.row.title?? && reportModel.reportData.row.title?size gt 0>
								<#list reportModel.reportData.row.title as tl>
								<#assign rows = 0 >
								<#list tl as title>
								<#if title??>
								<#if rows == values_index && title.name != "TOTAL_TEMP">
								<#if title.leveltype != "newrow_extend_sum">
								<td style="border:1px solid #7dc9ff!important;color:#000;background:#bfe4ff;min-width: 50px !important;padding:0 5px 0 5px;" rowspan="${title.rowspan!'0'}" nowrap="nowrap" align="center" <#if title.colspan gt 1>colspan="${title.colspan}"</#if>>${title.formatName!''}</td>
								</#if>
								<#if title.valueData??>
								<#list title.valueData as value>
								<#if value.merge==false>
								<td style="border:1px solid #7dc9ff!important;min-width: 50px !important;padding:0 5px 0 5px;" rowspan="${value.rowspan}" colspan="${value.colspan}" align="center" nowrap="nowrap" <#if value.cellmergeid??>data-cellmerge="${value.cellmergeid}"</#if>>${value.foramatValue!''}</td>
								</#if>
								</#list>
								</#if>
								</#if>
								<#assign rows = rows + title.rowspan>
								</#if>
								</#list>
								</#list>
								<#else>
								<#list values as value>
								<td style="border:1px solid #7dc9ff!important;min-width: 50px !important;padding:0 5px 0 5px;" style ="text-align: right;<#if value.valueType?? && value.valueType == 'total'>background-color:#c5daed;</#if>">${value.foramatValue!''}</td>
								</#list>
								</#if>
								</tr>
								</#list>
								</#if>
								</tbody>
								</table>
								</#if>
							</#if>
						</div>
						
					</div>
				</div>					
			</div>
		</div>
	</body>
</html>